using System;
using System.Drawing;
using System.Windows.Forms;

namespace OpenComposite.Base
{
	[ToolboxBitmap(typeof(Form))]
	public partial class WorkingMsgBox : Form
	{
		public WorkingMsgBox()
		{
			InitializeComponent();
		}

		public void Show(string sMsg)
		{
			label1.Text = sMsg;
			this.TopMost = true;
			this.ShowInTaskbar = false;
			this.Show();
			//Application.DoEvents();
			this.Refresh();
			this.Focus();
		}

		private void WorkingMsgBox_Leave(object sender, EventArgs e)
		{
			this.Parent.BringToFront();
			this.Focus();
			this.Refresh();
		}
	}
}